<?php
/**
 * Constantes du framework
 * @author Michael
 *
 */
class Constant {
	// Constant

	// Type d'overflow
	const OVERFLOW_VISIBLE 	= "visible";
	const OVERFLOW_HIDDEN 	= "hidden";
	const OVERFLOW_AUTO 	= "auto";
	const OVERFLOW_SCROLL 	= "scroll";
	const OVERFLOW_CLIP_H 	= "clip-h";
	const OVERFLOW_CLIP_V 	= "clip-v";

	// Background repeat & position
	const BACKGROUND_REPEAT 		= "repeat";
	const BACKGROUND_REPEAT_X 		= "repeat-x";
	const BACKGROUND_REPEAT_Y 		= "repeat-y";
	const BACKGROUND_NO_REPEAT 		= "no-repeat";
	const BACKGROUND_POSITION_LT 	= "left top";
	const BACKGROUND_POSITION_LC 	= "left center";
	const BACKGROUND_POSITION_LR 	= "left bottom";
	const BACKGROUND_POSITION_RT 	= "right top";
	const BACKGROUND_POSITION_RC 	= "right center";
	const BACKGROUND_POSITION_RB 	= "right bottom";
	const BACKGROUND_POSITION_CT 	= "center top";
	const BACKGROUND_POSITION_CC 	= "center center";
	const BACKGROUND_POSITION_CB 	= "center bottom";

	// Alignement
	const ALIGN_CENTER	= "center";
	const ALIGN_LEFT	= "left";
	const ALIGN_RIGHT	= "right";
	const ALIGN_TOP		= "top";
	const ALIGN_BOTTOM	= "bottom";

	// Encoding de formulaire
	const ENCODING_MULTIPART 	= "multipart";
	const ENCODING_NORMAL 		= "normal";
	
	// Methode d'envoi de formulaire
	const METHOD_SEND_GET	= "get";
	const METHOD_SEND_POST	= "post";

	// ItemLayout pour DynamicForm
	const ITEM_LAYOUT_TABLE		= "table";
	const ITEM_LAYOUT_ABSOLUTE	= "absolute";

	// Format d'affichage de date
	const DATE_DISPLAY_FORMAT_STRING		= "toString";
	const DATE_DISPLAY_FORMAT_LOCAL_STRING	= "toLocaleString";
	const DATE_DISPLAY_FORMAT_US_DATE		= "toUSShortDate";
	const DATE_DISPLAY_FORMAT_US_DATETIME	= "toUSShortDateTime";
	const DATE_DISPLAY_FORMAT_EU_DATE		= "toEuropeanShortDate";
	const DATE_DISPLAY_FORMAT_EU_DATETIME	= "toEuropeanShortDateTime";
	const DATE_DISPLAY_FORMAT_SERIALIZEABLE	= "toSerializeableDate";
	const DATE_DISPLAY_FORMAT_DATE_STAMP	= "toDateStamp";

	// Format d'affichage de time
	const TIME_DISPLAY_FORMAT_TOTIME					= "toTime";
	const TIME_DISPLAY_FORMAT_TO24SHORTTIME				= "to24HourTime";
	const TIME_DISPLAY_FORMAT_TOPADDEDTIME				= "toPaddedTime";
	const TIME_DISPLAY_FORMAT_TOPADDED24HOURTIME		= "toPadded24HourTime";
	const TIME_DISPLAY_FORMAT_TOSHORTTIME				= "toShortTime";
	const TIME_DISPLAY_FORMAT_TOSHORT24HOURTIME			= "toShort24HourTime";
	const TIME_DISPLAY_FORMAT_TOSHORTPADDEDTIME			= "toShortPaddedTime";
	const TIME_DISPLAY_FORMAT_TOSHORTPADDED24HOURTIME	= "toShortPadded24HourTime";

	// FormItem Type
	const FORMITEM_TYPE_TEXT		= "text";
	const FORMITEM_TYPE_BOOLEAN		= "boolean";
	const FORMITEM_TYPE_INTEGER		= "integer";
	const FORMITEM_TYPE_FLOAT		= "float";
	const FORMITEM_TYPE_DATE		= "date";
	const FORMITEM_TYPE_TIME		= "time";
	const FORMITEM_TYPE_ENUM		= "enum";
	const FORMITEM_TYPE_SEQUENCE	= "sequence";
	const FORMITEM_TYPE_LINK		= "link";
	const FORMITEM_TYPE_IMAGE		= "image";
	const FORMITEM_TYPE_IMAGE_FILE	= "imageFile";
	const FORMITEM_TYPE_BINARY		= "binary";

	// EditorType
	const EDITOR_TYPE_TEXT 				= 'text';
	const EDITOR_TYPE_TEXTAREA 			= 'textarea';
	const EDITOR_TYPE_AUTOFIT_TEXTAREA	= 'autoFitTextArea';
	const EDITOR_TYPE_RICHTEXT 			= 'RichTextItem';
	const EDITOR_TYPE_PASSWORD 			= 'password';
	const EDITOR_TYPE_SELECT 			= 'select';
	const EDITOR_TYPE_SELECT_OTHER 		= 'selectOther';
	const EDITOR_TYPE_COMBOBOX 			= 'comboBox';
	const EDITOR_TYPE_SUBMIT 			= 'submit';
	const EDITOR_TYPE_BUTTON 			= 'button';
	const EDITOR_TYPE_RESET 			= 'reset';
	const EDITOR_TYPE_HEADER 			= 'header';
	const EDITOR_TYPE_HIDDEN 			= 'hidden';
	const EDITOR_TYPE_ROW_SPACER 		= 'rowSpacer';
	const EDITOR_TYPE_SPACER 			= 'spacer';
	const EDITOR_TYPE_STATIC_TEXT 		= 'staticText';
	const EDITOR_TYPE_LINK 				= 'link';
	const EDITOR_TYPE_BLURB		 		= 'blurb';
	const EDITOR_TYPE_DATE 				= 'date';
	const EDITOR_TYPE_DATE_TIME 		= 'dateTime';
	const EDITOR_TYPE_TIME 				= 'time';
	const EDITOR_TYPE_CHECKBOX 			= 'checkbox';
	const EDITOR_TYPE_NATIVECHECKBOX 	= 'nativeCheckbox';
	const EDITOR_TYPE_SPINNER 			= 'spinner';
	const EDITOR_TYPE_SLIDER 			= 'slider';
	const EDITOR_TYPE_PICKTREE 			= 'pickTree';
	const EDITOR_TYPE_MULTIFILE 		= 'multiFile';
	const EDITOR_TYPE_UPLOAD 			= 'upload';
	const EDITOR_TYPE_CANVAS			= 'canvas';
	const EDITOR_TYPE_RADIOGROUP		= 'radioGroup';
	const EDITOR_TYPE_TOOLBAR			= 'toolbar';
	const EDITOR_TYPE_COLOR				= 'color';
	const EDITOR_TYPE_VIEWFILE			= 'viewFile';
	const EDITOR_TYPE_RELATIVEDATE		= 'relativeDate';
	const EDITOR_TYPE_DATERANGE			= 'dateRange';
	const EDITOR_TYPE_MINIDATERANGE		= 'miniDateRange';

	// Casing pour texte
	const CHARACTER_CASING_DEFAULT	= "default";
	const CHARACTER_CASING_UPPER	= "upper";
	const CHARACTER_CASING_LOWER	= "lower";

	// Multiple Apparence pour select
	const MULTIPLE_APPEARANCE_PICKLIST	= "picklist";
	const MULTIPLE_APPEARANCE_GRID		= "grid";

	// Wrap de textarea
	const WRAP_TEXTAREA_OFF		= "OFF";
	const WRAP_TEXTAREA_SOFT	= "SOFT";
	const WRAP_TEXTAREA_HARD	= "HARD";
	
	// controlGroups
	const CTRL_GROUP_FONT 	= 'fontControls';
	const CTRL_GROUP_FORMAT = 'formatControls';
	const CTRL_GROUP_STYLE 	= 'styleControls';
	const CTRL_GROUP_COLOR 	= 'colorControls';
	
	// Etat pour un bouton
	const BUTTON_STATE_DEFAULT		= "";
	const BUTTON_STATE_DOWN			= "Down";
	const BUTTON_STATE_OVER			= "Over";
	const BUTTON_STATE_DISABLED		= "Disabled";
	
	// Color Picker Mode
	const COLOR_PICKER_MODE_SIMPLE	= "simple";
	const COLOR_PICKER_MODE_COMPLEX	= "complex";
	
	// Tree Model Type
	const TREE_MODEL_TYPE_CHILDREN	= "children";
	const TREE_MODEL_TYPE_PARENT	= "parent";
	
	// Type de validateur
	const VALIDATOR_TYPE_ISBOOLEAN		= "isBoolean";
	const VALIDATOR_TYPE_ISSTRING		= "isString";
	const VALIDATOR_TYPE_ISINTEGER		= "isInteger";
	const VALIDATOR_TYPE_ISFLOAT		= "isFloat";
	const VALIDATOR_TYPE_ISFUNCTION		= "isFunction";
	const VALIDATOR_TYPE_REQUIREDIF		= "requiredIf";
	const VALIDATOR_TYPE_MATCHESFIELD	= "matchesField";
	const VALIDATOR_TYPE_ISONEOF		= "isOneOf";
	const VALIDATOR_TYPE_INTEGERRANGE	= "integerRange";
	const VALIDATOR_TYPE_LENGTHRANGE	= "lengthRange";
	const VALIDATOR_TYPE_CONTAINS		= "contains";
	const VALIDATOR_TYPE_NOTCONTAIN		= "doesntContain";
	const VALIDATOR_TYPE_SUBSTRINGCOUNT	= "substringCount";
	const VALIDATOR_TYPE_REGEXP			= "regexp";
	const VALIDATOR_TYPE_DATERANGE		= "dateRange";
	const VALIDATOR_TYPE_FLOATLIMIT		= "floatLimit";
	const VALIDATOR_TYPE_REQUIRED		= "required";
	const VALIDATOR_TYPE_ISUNIQUE		= "isUnique";
		
	// operateur de validateur
	const VALIDATOR_OPERATOR_EQ		= "==";
	const VALIDATOR_OPERATOR_NEQ	= "!=";
	const VALIDATOR_OPERATOR_GT		= ">";
	const VALIDATOR_OPERATOR_GTE	= ">=";
	const VALIDATOR_OPERATOR_LT		= "<";
	const VALIDATOR_OPERATOR_LTE	= "<=";
	
	// Format de donnees
	const DATA_FORMAT_JSON 	= "json";
	const DATA_FORMAT_XML 	= "xml";
	
	// Protocol de donnees
	const DATA_PROTOCOL_POST		= "postParams";
	const DATA_PROTOCOL_GET			= "getParams";
	const DATA_PROTOCOL_POST_XML	= "postXML";
	const DATA_PROTOCOL_SOAP		= "soap";
	
	// Type FIELDS
	const FIELD_TYPE_TEXT			= "text";
	const FIELD_TYPE_BOOLEAN		= "boolean";
	const FIELD_TYPE_INTEGER		= "integer";
	const FIELD_TYPE_FLOAT			= "float";
	const FIELD_TYPE_DATE			= "date";
	const FIELD_TYPE_TIME			= "time";
	const FIELD_TYPE_DATETIME		= "datetime";
	const FIELD_TYPE_ENUM			= "enum";
	const FIELD_TYPE_INTENUM		= "intEnum";
	const FIELD_TYPE_SEQUENCE		= "sequence";
	const FIELD_TYPE_LINK			= "link";
	const FIELD_TYPE_IMAGE			= "image";
	const FIELD_TYPE_BINARY			= "binary";
	const FIELD_TYPE_IMAGEFILE		= "imageFile";
	const FIELD_TYPE_ANY			= "any";
	const FIELD_TYPE_ICON			= "icon";
	const FIELD_TYPE_MODIFIER		= "modifier";
	const FIELD_TYPE_MODIFIERTIMESTAMP	= "modifierTimestamp";
	const FIELD_TYPE_CREATOR		= "creator";
	const FIELD_TYPE_CREATORTIMESTAMP	= "creatorTimestamp";
	const FIELD_TYPE_SUMMARY		= "summary";
	
	// arrowKeyAction
	const ARROWKEY_ACTION_SELECT	= "select";
	const ARROWKEY_ACTION_FOCUS		= "focus";
	const ARROWKEY_ACTION_ACTIVATE	= "activate";
	const ARROWKEY_ACTION_NONE		= "none";
	
	// autoFetchTextMatchStyle
	const TEXT_MATCH_STYLE_EXACT	= "exact";
	const TEXT_MATCH_STYLE_SUBSTR	= "substring";
	const TEXT_MATCH_STYLE_START	= "startsWith";
	
	// ExpansionMode
	const EXPANSION_MODE_DETAILFIELD	= "detailField";
	const EXPANSION_MODE_DETAILS		= "details";
	const EXPANSION_MODE_RELATED		= "related";
	const EXPANSION_MODE_EDITOR			= "editor";
	const EXPANSION_MODE_DETAILRELATED	= "detailRelated";
	
	// dataFetchMode
	const DATA_FETCH_MODE_BASIC	= "basic";
	const DATA_FETCH_MODE_PAGED	= "paged";
	const DATA_FETCH_MODE_LOCAL	= "local";
	
	// dragDataAction
	const DRAG_DATA_ACTION_NONE	= "none";
	const DRAG_DATA_ACTION_COPY	= "copy";
	const DRAG_DATA_ACTION_MOVE	= "move";
	
	// dragTrackerMode
	const DRAG_TRACKER_MODE_NONE	= "none";
	const DRAG_TRACKER_MODE_ICON	= "icon";
	const DRAG_TRACKER_MODE_TITLE	= "title";
	const DRAG_TRACKER_MODE_RECORD	= "record";
	
	// editEvent
	const EDIT_EVENT_CLICK			= "click";
	const EDIT_EVENT_DOUBLECLICK	= "doubleClick";
	const EDIT_EVENT_NONE			= "none";
	
	// enterKeyEditAction
	const ENTER_KEY_EDIT_ACTION_DONE			= "done";
	const ENTER_KEY_EDIT_ACTION_NEXT_CELL		= "nextCell";
	const ENTER_KEY_EDIT_ACTION_NEXT_ROW		= "nextRow";
	const ENTER_KEY_EDIT_ACTION_NEXT_ROW_START	= "nextRowStart";
	
	// escapeKeyEditAction
	const ESCAPE_KEY_EDIT_ACTION_DONE	= "done";
	const ESCAPE_KEY_EDIT_ACTION_CANCEL	= "cancel";
	
	// groupStartOpen
	const GROUP_START_OPEN_ALL		= "all";
	const GROUP_START_OPEN_NONE 	= "none";
	const GROUP_START_OPEN_FIRST	= "first";
	
	// hoverMode
	const HOVER_MODE_DETAILFIELD	= "detailField";
	const HOVER_MODE_DETAILS		= "details";
	const HOVER_MODE_RELATED		= "related";
	const HOVER_MODE_DETAILRELATED	= "detailRelated";
	
	// listEndEditAction
	const LIST_END_EDIT_ACTION_NEXT	= "next";
	const LIST_END_EDIT_ACTION_DONE	= "done";
	const LIST_END_EDIT_ACTION_STOP	= "stop";
	const LIST_END_EDIT_ACTION_NONE	= "none";
	
	// rowEndEditAction
	const ROW_END_EDIT_ACTION_NEXT	= "next";
	const ROW_END_EDIT_ACTION_SAME	= "same";
	const ROW_END_EDIT_ACTION_DONE	= "done";
	const ROW_END_EDIT_ACTION_STOP	= "stop";
	const ROW_END_EDIT_ACTION_NONE	= "none";

	// selectionAppearance
	const SELECTION_APPEARANCE_ROWSTYLE	= "rowStyle";
	const SELECTION_APPEARANCE_CHECKBOX	= "checkbox";
	
	// selectionType
	const SELECTION_STYLE_NONE		= "none";
	const SELECTION_STYLE_SINGLE	= "single";
	const SELECTION_STYLE_MULTIPLE	= "multiple";
	const SELECTION_STYLE_SIMPLE	= "simple";
	
	// showSortArrow
	const SORT_ARROW_NONE		= "none";
	const SORT_ARROW_CORNER		= "corner";
	const SORT_ARROW_FIELD		= "field";
	const SORT_ARROW_BOTH		= "both";
	
	// autoFitWidthApproach
	const AUTOFIT_WIDTH_APPROACH_VALUE	= "value";
	const AUTOFIT_WIDTH_APPROACH_TITLE	= "title";
	const AUTOFIT_WIDTH_APPROACH_BOTH	= "both";
	
	// sortDirection
	const SORT_DIRECTION_ASC 	= 'ascending';
	const SORT_DIRECTION_DESC 	= 'descending';
	
	// recordSummaryFunction
	const SUMMARY_FUNCTION_SUM 			= "sum";
	const SUMMARY_FUNCTION_AVG 			= "avg";
	const SUMMARY_FUNCTION_MAX 			= "max";
	const SUMMARY_FUNCTION_MIN 			= "min";
	const SUMMARY_FUNCTION_MULTIPLIER 	= "multiplier";
	const SUMMARY_FUNCTION_COUNT		= "count";
	
	// actionType
	const ACTION_TYPE_BUTTON	= "button";
	const ACTION_TYPE_RADIO		= "radio";
	const ACTION_TYPE_CHECKBOX	= "checkbox";
	
	// displayNodeType
	const DISPLAY_NODE_TYPE_FOLDERS		= "folders";
	const DISPLAY_NODE_TYPE_LEAVES		= "leaves";

	// Type image
	const IMAGE_TYPE_NORMAL 	= 'normal';
	const IMAGE_TYPE_CENTER 	= 'center';
	const IMAGE_TYPE_STRETCH 	= 'stretch';
	const IMAGE_TYPE_TILE 		= 'tile';
	
	// DSOperationType
	const DS_OPERATION_TYPE_ADD			= "add";
	const DS_OPERATION_TYPE_UPDATE		= "update";
	const DS_OPERATION_TYPE_REMOVE		= "remove";
	const DS_OPERATION_TYPE_FETCH		= "fetch";
	const DS_OPERATION_TYPE_VALIDATE	= "validate";
	
	// Visibility
	const VISIBILITY_INHERIT 	= "inherit";
	const VISIBILITY_VISIBLE 	= "visible";
	const VISIBILITY_HIDDEN 	= "hidden";
	
	// --------------------------------
	const O_EQUALS = 'equals';
	const O_NOT_EQUAL = 'notEqual';
	const O_GREATER_THAN = 'greaterThan';
	const O_LESS_THAN = 'lessThan';
	const O_GREATER_OR_EQUAL = 'greaterOrEqual';
	const O_LESS_OR_EQUAL = 'lessOrEqual';
	const O_CONTAINTS = 'contains';

}
?>